package org.gdpu.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Created with IntelliJ IDEA.
 * User: willson
 * Date: 13-10-31
 * Time: 上午9:57
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class UserInfo {

    /*
          用户编号
       */
    private int userId;

    /*
        用户名
     */
    private String userName;

    /*
        权限
     */
    private String powerGroup;

    /*
        用户密码
    */
    private String password;

    @Id
    @GeneratedValue
    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPowerGroup() {
        return powerGroup;
    }

    public void setPowerGroup(String powerGroup) {
        this.powerGroup = powerGroup;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserInfo(String userName){
        super();
        this.userName = userName;
    }

    public UserInfo(){
        super();
    }

    @Override
    public String toString() {
        return userName;
    }
}
